package yzserver.sx4a.org;

import yzserver.sx4a.domain.OrganizationDomain;

public class Organization {
    private String id;  //组织id注意为20位的编码例如00410088002900000000
    private String name;//组织名称
    private String parentid;//父组织id注意为20位的编码例如00410088002900000000
    private String displayname;//组织全名
    private String startdate;//生效时间yyyy-MM-dd 如2010-03-08
    private String enddate;//失效时间yyyy-MM-dd 如2010-03-08
    private String updatedate;//更新时间yyyy-MM-dd HH:mm:ss，如2010-03-08
    private String orgstatus;//状态（0是有效，1是失效）
    private String orgnum;//组织非20位编码的ID例如470（外部组织无）
    private String orglevel;//组织级别例如上市省公司二级（外部组织无）
    private String sort;//排序

    public Organization() {
    }

    public Organization(OrganizationDomain domain) {
        this.id = domain.getORGID();
        this.name = domain.getORGNAME();
        this.parentid = domain.getORGPARENT();
        this.displayname = domain.getDISPLAYNAME();
        this.startdate = domain.getSTARTDATE();
        this.enddate = domain.getENDDATE();
        this.updatedate = domain.getUPDATEDATE();
        this.orgstatus = domain.getENABLE();
        this.orgnum = domain.getORGNUM();
        this.orglevel = domain.getORGLEVEL();
        this.sort = domain.getSORT();

    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getParentid() {
        return parentid;
    }

    public void setParentid(String parentid) {
        this.parentid = parentid;
    }

    public String getDisplayname() {
        return displayname;
    }

    public void setDisplayname(String displayname) {
        this.displayname = displayname;
    }

    public String getStartdate() {
        return startdate;
    }

    public void setStartdate(String startdate) {
        this.startdate = startdate;
    }

    public String getEnddate() {
        return enddate;
    }

    public void setEnddate(String enddate) {
        this.enddate = enddate;
    }

    public String getUpdatedate() {
        return updatedate;
    }

    public void setUpdatedate(String updatedate) {
        this.updatedate = updatedate;
    }

    public String getOrgstatus() {
        return orgstatus;
    }

    public void setOrgstatus(String orgstatus) {
        this.orgstatus = orgstatus;
    }

    public String getOrgnum() {
        return orgnum;
    }

    public void setOrgnum(String orgnum) {
        this.orgnum = orgnum;
    }

    public String getOrglevel() {
        return orglevel;
    }

    public void setOrglevel(String orglevel) {
        this.orglevel = orglevel;
    }

    public String getSort() {
        return sort;
    }

    public void setSort(String sort) {
        this.sort = sort;
    }
}
